package com.tqjc.plccontrol.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @projectName: BaotouSteel
 * @className: ConnectInfo
 * @author: Patienyon
 * @description: TODO
 * @date: 2023/6/13 10:01
 */

@EqualsAndHashCode(callSuper = true)
@TableName(value = "connect_info")
@Data
@DS("baotou")
@Schema(description = "PLC连接采集信息表")
public class ConnectInfo extends Model {
    /**
     * 主键SN
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private String sn;
    /**
     * 服务名称
     */
    @Schema(description = "服务名称")
    private String name;
    /**
     * 所属的PLC的SN
     */
    @Schema(description = "所属的PLC的SN")
    private String plcSn;
}
